package org.hxyjs.dao;

import org.hxyjs.entity.Admin;
import org.hxyjs.page.PageInfo;

import java.util.List;

public interface AdminDao {
    public List<Admin> getAdminByPage(PageInfo pageInfo) throws Exception;

    public Admin getAccountByAccountName(String aname) throws Exception ;

    public List<Admin> getAllAdmins() throws Exception;

    public Admin getAdminByAno(String ano) throws Exception;

    //增删改的返回值都是整数
    Integer deleteAdminByAno(String ano) throws Exception;

    Integer updateAdminByAno(Admin admin) throws Exception;

    Integer addAdmin(Admin admin) throws Exception;




}
